const db=uniCloud.database()
const cmd=db.command
module.exports = {
	_before: function () { // 通用预处理器

	},
	async view_count(newid){	
		return await db.collection('video-articles').doc(newid).update({
			view_count:cmd.inc(1)
		})
	}
}
